
import request from '@shared/apis/request';
import * as apis from '@shared/apis';

export interface IParams extends Omit<apis.customers.ICustomer, 'id'> { }

/**
 * 创建用户
 * @param params - 创建用户所需的参数
 * @returns 返回创建的用户数据
 */
export async function post(params: IParams) {
    const url = '/customers/create';
    const body = await request.post<apis.customers.ICustomer>(url, params);
    return body.data;
}

